﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VisualLocation.aspx.cs" Inherits="WMS6.Web.Inventory.VisualLocation" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>VisualLocation</title>
    <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">


     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript" src="../Js/WareHouse.js"></script>
    <script language="javascript" type="text/javascript"  src="../Js/jquery.js"></script>
    <script language="javascript"type="text/javascript" src="../Js/jquery.blockUI.js"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/DivMove.js"></script>
    <script language="javascript"  type="text/javascript">
       
       //初始化页面
        window.onload = function() {
            initEditNewPage();          
        }   
        function LocQueryShow()
        {
          $("#DivLocQuery").slideToggle();   
        }
    function VisualLocationLoad(type)  
    {
        document.getElementById("DivLoctionShow").innerHTML="";
        $.blockUI.defaults.message = GetBlockUIMsg();
        $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
        $.blockUI();
        WareHouseLoad(type);
    }
    function LocDetailLoc(value)
    {
	    var pos = getElementPos("td_"+value);	
	    document.getElementById("LocDetailDiv").style.top = pos.y-100;
	    document.getElementById("LocDetailDiv").style.left = pos.x-50;  
	    document.getElementById("LocDetailDiv").innerHTML="<img src='../Images/loading.gif' />";
	    document.getElementById("LocDetailDiv").style.display='';
	    document.getElementById("hdnDetailID").value=value;
	    WareHouseLoad("LocationDetail");
    }
    function LocDetailClose()
    {
      document.getElementById("LocDetailDiv").innerHTML="";
	  document.getElementById("LocDetailDiv").style.display='none';
    }
    //显示
    function LocAndSkuShow(value)
    {
         document.getElementById("hdnDetailID").value=value;
         document.getElementById("LocShow").innerHTML="";
         $('#LocShow').modal();
         WareHouseLoad("SkuDetail");
    }
    //关闭
    function LocAndSkuClose()
    {
      $.modal.close();
    }  
      function autoResizeQueryDivs(obj)
     {
       if(document.getElementById(obj).offsetHeight > document.documentElement.clientHeight - 150)
        {
            document.getElementById(obj).style.height = document.documentElement.clientHeight - 150;
        }
        else
        {
            document.getElementById(obj).style.height = "";
        }   
    }
    
    </script>
   
</head>

<body  scroll=no >
<div style="height:10px" >
            
</div> 
            <div id="div_query"  >
                <div id="div_topline" >
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="20">
                               <img src="../Images/ico1.gif" width="16" height="16" id=imgLocQuery  style=" cursor:pointer; display:block;" onclick="LocQueryShow()" title="货位筛选条件" />
                              <div id="DivLocQuery"   style="position:absolute;display:none; ">  
                                  <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr>
                                          <td height="30" background="../Images/DivLocQuery_01.gif">
                                              <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                  <tr>
                                                      <td valign="bottom">
                                                          <span class="warehoustitle"><asp:Label ID="lblSelectLocation" runat="server" 
                                                              CssClass="label" Text="货位筛选条件" meta:resourcekey="lblSelectLocation"></asp:Label></span>
                                                      </td>
                                                      <td width="16" class="close" onclick="LocQueryShow()">
                                                          &nbsp;
                                                      </td>
                                                  </tr>
                                              </table>
                                          </td>
                                      </tr>
                                      <tr>
                                          <td background="../Images/DivLocQuery_02.gif">
                                              <table width="292" border="0" align="center" cellpadding="0" cellspacing="0">
                                                  <tr>
                                                      <td>
                                                          <table width="100%" align="center" cellpadding="0" cellspacing="0">
                                                              <tr>
                                                                  <td width="25%" align="center" class="areaname">
                                                                      <asp:Label ID="lblArea" runat="server" CssClass="label" Text="储区:" 
                                                                          meta:resourcekey="lblArea"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                      <input id="txtSelectZoneID" type="text" class="textbox" />                                                                   
                                                                  </td>
                                                              </tr>
                                                              <tr>
                                                                  <td align="center" class="areaname">
                                                                      <asp:Label ID="lblLocation" runat="server" CssClass="label" Text="货位:" 
                                                                          meta:resourcekey="lblLocation"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                    <input id="txtSelectLocID" type="text" class="textbox" />      
                                                                  </td>
                                                              </tr>
                                                              <tr>
                                                                  <td align="center" class="areaname">
                                                                     <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态:" 
                                                                          meta:resourcekey="lblStatus"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                      <select id="QueryddlStatus" class="mediumselectbox">
                                                                       <option value=""></option>
                                                                          <option value="OK">OK</option>
                                                                             <option value="HOLD">HOLD</option>
                                                                      </select>                                                                    
                                                                  </td>
                                                              </tr>
                                                              <tr>
                                                                  <td align="center" class="areaname">
                                                                      <asp:Label ID="lblSku" runat="server" CssClass="label" Text="货品:" 
                                                                          meta:resourcekey="lblSku"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                   <input id="txtSelectSkuID" type="text" class="textbox" />                                                                        
                                                                  </td>
                                                              </tr>
                                                              <tr>
                                                                  <td align="center" class="areaname">
                                                                      <asp:Label ID="lblOwner" runat="server" CssClass="label" Text="货主:" 
                                                                          meta:resourcekey="lblOwner"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                   <input id="txtOwnerID" type="text" class="textbox" />                                                                        
                                                                  </td>
                                                              </tr>
                                                               <tr>
                                                                  <td align="center" class="areaname">
                                                                      <asp:Label ID="lblLot" runat="server" CssClass="label" Text="批次号:" 
                                                                          meta:resourcekey="lblLot"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                   <input id="txtLot" type="text" class="textbox" />                                                                        
                                                                  </td>
                                                              </tr>
                                                               <tr>
                                                                  <td align="center" class="areaname">
                                                                     <asp:Label ID="lblLpn" runat="server" CssClass="label" Text="Lpn:" 
                                                                          meta:resourcekey="lblLpn"></asp:Label>
                                                                  </td>
                                                                  <td>
                                                                   <input id="txtLpn" type="text" class="textbox" />                                                                        
                                                                  </td>
                                                              </tr>
                                                          </table>
                                                      </td>
                                                  </tr>
                                                  <tr>
                                                      <td height="10">
                                                          <div style="border-top: 1px dashed #cccccc; height: 1px; overflow: hidden">
                                                          </div>
                                                      </td>
                                                  </tr>
                                                  <tr>
                                                      <td align="center">
                                                          <input type="image" name="imageField" src="../Images/search1.gif" onclick=" VisualLocationLoad('Location');">
                                                      </td>
                                                  </tr>
                                              </table>
                                          </td>
                                      </tr>
                                      <tr>
                                          <td height="10" background="../Images/DivLocQuery_03.gif"  >
                                          </td>
                                      </tr>
                                  </table>
                              </div>  
                            </td>
                            <td width="25" align="right">
                                <input type="radio" name="radiobutton" id="RadioPane" value="radiobutton" checked=checked  onclick="VisualLocationLoad('Location');"/>
                            </td>
                            <td width="80" valign="bottom">
                                <asp:Label ID="lblPlanelocation" runat="server" CssClass="label" Text="平面货位" 
                                    meta:resourcekey="lblPlanelocation"></asp:Label>
                            </td>
                            <td width="25" align="right">
                                <input type="radio" name="radiobutton" value="radiobutton" id="RadioSilid" onclick="VisualLocationLoad('Location');" />
                            </td>
                            <td width="80" valign="bottom">
                                <asp:Label ID="lblSolidlocation" runat="server" CssClass="label" Text="立体货位" 
                                    meta:resourcekey="lblSolidlocation"></asp:Label>
                            </td>
                                <td width="25" valign="right">
                                    <input id="chkHistory" type="checkbox" checked=checked />                                   
                            </td>
                               <td width="80" valign="bottom">
                                <asp:Label ID="lblShowhistory" runat="server" CssClass="label" Text="显示历史记录" 
                                       meta:resourcekey="lblShowhistory"></asp:Label>
                            </td>
                            
                            <td >
                                <img src="../Images/ico2.gif" alt="刷新" width="16" height="16" style=" cursor:pointer" onclick="VisualLocationLoad('Location');" />
                            </td>
                           <td style="border-left:1px solid #828282"><div style="float:left; margin-left:5px;" class="areaname">
                               <asp:Label ID="lblFull" runat="server" CssClass="label" Text="满:" 
                                   meta:resourcekey="lblFull"></asp:Label></div>
                    <div style="width:10px; height:10px; margin-right:15px;float:left" class="fullcolor">&nbsp;</div>
                    <div style="float:left" class="areaname"><100%：</div>
					<div style="width:10px; height:10px; margin-right:15px;float:left" class="somecolor1">&nbsp;</div>
					<div style="float:left" class="areaname"><=60%：</div>
					<div style="width:10px; height:10px; margin-right:15px;float:left" class="somecolor2">&nbsp;</div>
					<div style="float:left" class="areaname"><=30%：</div>
					<div style="width:10px; height:10px; margin-right:15px;float:left" class="somecolor3">&nbsp;</div>
					<div style="float:left" class="areaname"><asp:Label ID="lblHold" runat="server" 
                            CssClass="label" Text="冻结:" meta:resourcekey="lblHold"></asp:Label></div>
                    <div style="width:10px; height:10px; margin-right:15px;float:left" class="holdcolor">&nbsp;</div>
					<div style="float:left" class="areaname"><asp:Label ID="lblEmpty" runat="server" 
                            CssClass="label" Text="空:" meta:resourcekey="lblEmpty"></asp:Label></div>
                    <div style="width:10px; height:10px; margin-right:15px;float:left" class="nocolor">&nbsp;</div>
					<div style="float:left" class="areaname"><asp:Label ID="lblNotexist" runat="server" 
                            CssClass="label" Text="货位不存在:" meta:resourcekey="lblNotexist"></asp:Label></div>
                    <div style="width:10px; height:10px; margin-right:15px;float:left" class="defaultcolor">&nbsp;</div></td>
                        </tr>
                    </table>
                </div>
             <%--  储区颜色参照--%>
			<div id="div_arealine">
            </div>
            <br />
             <%--实际货位显示--%>
              <div id="DivLoctionShow" style="height:550px;overflow-x:auto; overflow-y:auto;">
              
              </div>
          
            <%--对于选择的 货位进行 详细信息展示--%>
            <div id="DivDesc" ></div>
            </div>
           
    <input id="hdnDetailID" type="hidden" />
           <div id="LocDetailDiv" style="position:absolute;display:none; width:210px;border:none 0 black"></div>
          
           <div id="LocShow"  style="position:absolute;display:none; width:550px;border:none 0 black; " ></div>
</body>

</html>
